// pages/address/address.js

var app = getApp();
var page=1;
var selectedNews = false;
var newsList = [];

Page({
  data: {
    gotype: ""    
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    var that = this;
    that.setData({
      gotype: options.gotype
    })
  },
  bindAddTap: function (e) {
    wx.navigateTo({
      url: '../addAddress/addAddress?gotype=' + this.data.gotype,
    })
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示

  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  // onShareAppMessage: function () {
  // },
  /** 
   * 页面上拉触底事件的处理函数 
   */
  onReachBottom: function () {

  }
})